package webserver;

public class HTTPRequest {
	//first line contains 3 parts
	//1-part request type, 2-file name 3-http version
	//for us only file name is important
	
	String fileName;
	
	public HTTPRequest(String reqS) {
		//now we have the request
		//only the first line is important for us
		String lines[]=reqS.split("\n");//now we got all lines of request
		
		//this line basically split the first line using " " and then select the second item
		//which is our filename
		
		lines=lines[0].split(" ");
		
		fileName=lines[1];
		System.out.println(fileName);
	}
}
